home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000428_news@columbia.edu _Fri Jul 21 14:40:59 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id OAA18398
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Fri, 21 Jul 2000 14:40:59 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA23739
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 21 Jul 2000 14:40:59 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id OAA14463
  10.     for kermit.misc@watsun.cc.columbia.edu; Fri, 21 Jul 2000 14:16:45 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: fdc@columbia.edu (Frank da Cruz)
  13. Subject: Re: K95 SCRIPTS WITH DIRECT SERIAL CONNECTION
  14. Date: 21 Jul 2000 18:16:45 GMT
  15. Organization: Columbia University
  16. Message-ID: <8la42d$e3s$1@newsmaster.cc.columbia.edu>
  17. To: kermit.misc@columbia.edu
  18.  
  19. In article <39789210.43E0A441@compuserve.com>,
  20. Sandy Rosenberg  <SandyRosenberg@compuserve.com> wrote:
  21. : I am trying to write a K95 script to be used with a direct serial
  22. : connection to my Alphaserver running openVMS.  I want to automatically
  23. : log in to the alpha, transfer a file, invoke a command, and log out.  I
  24. : have done this with dial up connections without a problem.  With the
  25. : direct connection however, the OUTPUT commands don't seem to go to the
  26. : connected system - they come out in the command window instead.  Any
  27. : suggestions would be appreciated.
  28. It probably means that the script did not succeed in opening the connection.
  29. Make sure your script specifies the same COM port that the cable is connected
  30. to, and that you have a null-modem cable (or a modem cable with a null-modem
  31. adapter).
  32.  
  33. The script should go something like this:
  34.  
  35.   set input echo on               ; So you can watch what happens
  36.   set modem type none             ; Tell K95 there is no modem
  37.   set carrier-watch off           ; This might or might not be necessary
  38.   set port com1
  39.   if fail stop 1 SET PORT failed
  40.   set speed 19200                 ; (or whatever)
  41.   output \13                      ; Send carriage return
  42.   input 10 Username:              ; Wait 10 seconds for Username: prompt
  43.   if fail stop 1 No Username: prompt  
  44.  
  45. For a more fully elaborated example, see Chapter 19 of Using C-Kermit.
  46.  
  47. Also see Chapter 3 about direct serial connections.
  48.  
  49. - Frank